package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 我的门卡对象 mycard
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
public class Mycard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 门卡 */
    private Long id;

    /** 门卡编号 */
    @Excel(name = "门卡编号")
    private String cardNumber;

    /** 门卡类型 */
    @Excel(name = "门卡类型")
    private String cardType;

    /** 门卡密码 */
    @Excel(name = "门卡密码")
    private String pinCode;

    /** 门卡状态 */
    @Excel(name = "门卡状态")
    private Long status;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后刷卡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后刷卡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCardNumber(String cardNumber) 
    {
        this.cardNumber = cardNumber;
    }

    public String getCardNumber() 
    {
        return cardNumber;
    }
    public void setCardType(String cardType) 
    {
        this.cardType = cardType;
    }

    public String getCardType() 
    {
        return cardType;
    }
    public void setPinCode(String pinCode) 
    {
        this.pinCode = pinCode;
    }

    public String getPinCode() 
    {
        return pinCode;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardNumber", getCardNumber())
            .append("cardType", getCardType())
            .append("pinCode", getPinCode())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
